#!/bin/bash
#========================================================================
# Author: YSLin
# Email: 
# File Name: strTableExtract.sh
# Description: 
#   
# Edit History: 
#   2011-01-24    File created.
#========================================================================
awk '  
/string_data_item:/ { 
	str=$6; 
	#print "line: "NR "---[1] "$1 "[2] "$2 "[3] "$3 "[4] "$4 "[5] "$5 "[6] "$6; 
}
$5 !~ /string_data_item/ { 
	if (length($2) <1){ 
		#print "l: "NR $2;
		str = substr(str,2,length(str)-2);
		print str;
	}else{
		#print "l: "NR $2;
		str=str $2; 
	}
}
' sample
